<?php
header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-word");
header('Content-Disposition: attachment; filename=all_students.csv');
header("Content-Transfer-Encoding: binary");

foreach ($studentslist as $student):
if ($student){
	echo implode(';', $student);
}

echo '
	';
endforeach;
?>